<?php

session_start();
require_once "login.php";

if (isset($_SESSION['user'])) {
    $user = $_SESSION['user'];
    $loggedin = TRUE;
}
else $loggedin = FALSE;

echo <<<_END

<html>
<head>
<title>Donations</title>
<style type="text/css">
a.rollover3 {
	display: block;
	width: 100px;
	height: 50px;
	background-image: url('login.gif');
}

a.rollover3:hover {
	background-image: url('loginclicked.gif');
}
</style>
<style type="text/css">
a.rollover {
	display: block;
	width: 100px;
	height: 50px;
	background-image: url('addaccountbutton.gif');
}

a.rollover:hover {
	background-image: url('addaccountbuttonclicked.gif');
}

a.rollover1 {
	display: block;
	width: 100px;
	height: 50px;
	background-image: url('searchaccountbutton.gif');
}

a.rollover1:hover {
	background-image: url('searchaccountbuttonclicked.gif');
}
</style>
<style type="text/css">
a.rollover2 {
	display: block;
	width: 100px;
	height: 50px;
	background-image: url('Reportsbutton.gif');
}

a.rollover2:hover {
	background-image: url('reportsbuttonclicked.gif');
}
</style>
</head>
<style type="text/css">
a.rollover4 {
	display: block;
	width: 100px;
	height: 50px;
	background-image: url('logout.gif');
}

a.rollover4:hover {
	background-image: url('logoutclicked.gif');
}
</style>

</head>
<!-- Author: Matthew Wakim 
File name: index.html 
Purpose: The purpose of this page is to set a basis for the site and allow for all the pages to be displayed without any issues. It should allow for a smooth flow. This site has an iframe which is targeted by the bottons to change to the included pages. -->
<body  background="background.gif" bgcolor="#6699CC">
<center>
  <h1><img src="SpinningGlobe.gif" alt="l" width="90" height="87" /><img src="donationsbanner.gif" width="350" height="55" /><img src="SpinningGlobe.gif" width="90" height="87" /></h1>
  <table border="0"><tr>
  <td><a href="index.php" target="iframe" class="rollover3"></a></td>
  <td><a href="DonerInfo.php" target="iframe" class="rollover"></a></td>
  <td><a href="search.php" target="iframe" class="rollover1"></a></td>
  <td><a href="donerinfo.php" target="iframe" class="rollover2"></a></td>
  <td><a href="logout.php" target="iframe" class="rollover4"></a></td>
  </tr>
  </table>
  </p>
</center>
<center>
  
</center>

</body>
</html>

_END
?>